/*
* 使用双重循环实现五子棋游戏棋盘的绘制，棋盘界面的具体效果如下：
*/


public class HomeWork5 {
	
	public static void main(String[] args) {
		
		//定义一个数组，存放0-9a-f
		String[] arr = {" ","0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"};

		for (int i = 0;i<arr.length;i++) {
			String lineRes = "";
			for (int j = 0;j<arr.length;j++) {
				String s;    //定义每个单元应该是哪个字符串，第一行和第一列显示数组内的元素
				if (i==0) {
					s = arr[j]+" ";
				}else if (j==0) {
					s = arr[i]+" ";
				}else{
					s = "+ ";
				}
				lineRes += s;
			}
			System.out.println(lineRes);
		}
	}
}